package com.haixiaoke.saas.order.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.apache.tomcat.jni.Local;

/**
 * 订单每日房费详情对象 biz_order_housing_expenses
 *
 * @author panda
 * @date 2024-04-03
 */
@Data
public class OrderHousingExpenses extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private String orderId;

    /**
     * 关联订单
     */
    @Excel(name = "关联订单")
    private String linkedOrderId;

    /**
     * 房屋配置id
     */
    private Long allocationId;

    /**
     * 房屋id
     */
    @Excel(name = "房屋id")
    private String houseId;

    /**
     * 租房时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租房时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate rentingTime;

    /**
     * 房费
     */
    @Excel(name = "房费")
    private BigDecimal rentingExpenses;

    /**
     * 房费来源（1房屋配置,2价格日历）
     */
    @Excel(name = "房费来源", readConverterExp = "1=房屋配置,2=价格日历", combo = {"房屋配置", "价格日历"})
    private String expensesSource;

    /**
     * 房费类型1.下单 2.续租
     */
    @Excel(name = "房费类型", readConverterExp = "1=下单,2=续租", combo = {"下单", "续租"})
    private String expensesType;

    /**
     * 逻辑删除标志(0代表存在
     */
    private String delFlag;

    private String premisesAddress;
}
